<table id="lista">
  <thead>
    <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Plant</th>
      <th>Ip1</th>
      <th>User1</th>
      <th>Pass1</th>
      <th>Ip2</th>
      <th>Ip3</th>
      <th>User2</th>
      <th>Pass2</th>
      <th>Note</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($netDevs as $key=>$netDev){ 
        $odd = fmod($key, 2) ? 'odd' : 'even'; ?>
        <tr class="<?php echo $odd ?>">

          <td><a href="<?php echo url_for('network/show?id='.$netDev->getId()) ?>"><?php echo $netDev->getName() ?></a></td>
          <td><?php echo $netDev->getType() ?></td>
          <td><?php echo $netDev->getPlant() ?></td>
          <td><?php echo $netDev->getIp1() ?></td>
          <td><?php echo $netDev->getUser1() ?></td>
          <td><?php echo $netDev->getPass1() ?></td>
          <td><?php echo $netDev->getIp2() ?></td>
          <td><?php echo $netDev->getIp3() ?></td>
          <td><?php echo $netDev->getUser2() ?></td>
          <td><?php echo $netDev->getPass2() ?></td>
          <td><?php echo $netDev->getNote() ?></td>
        </tr>
    <?php } ?>
  </tbody>
</table>
